<script setup>
const props = defineProps({
    loading: Boolean,
})
</script>

<template>
    <button :disabled="loading" class="flex items-center">
        <div v-if="loading" class="btn-spinner mr-2"></div>
        <slot />
    </button>
</template>